define(function (require, exports) {
    var base = require("customize/ui/base");

    exports.validate = function (target, validateOptions) {
        base.jq(target).find("input[name],select[name],textarea[name]").jqBootstrapValidation(validateOptions);
    };

    exports.destroy = function (target) {
        base.jq(target || "#form").find("input[name],select[name],textarea[name]").jqBootstrapValidation('destroy');
    }
});